<?php

/**
 * home actions.
 *
 * @package    cuv
 * @subpackage home
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class homeActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
    $this->getUser()->setCulture('it_IT');


    $this->nAdesioni = CampaignCommentQuery::create()->
            count();
    
    $this->campagne = CampaignQuery::create()->find();

    $this->ogValues = array();
    $this->ogValues['og:title'] = "compraunvoto.it";
    $this->ogValues['og:image'] = 'http://' . $request->getHost() . "/images/fb_icon.jpg";
    $this->ogValues['og:url'] = $request->getHost() ;
  }
}
